package Tax;

public class Tax4 extends Tax{
    public Tax4(int a, int b, int c, int d, int e, int sum) {
        super(a, b, c, d, e, sum);
    }
    public double getTax() {
        return super.a*0.1 + (super.b-super.a)*0.15+(super.c-super.b)*0.25 + (super.sum-super.c)*0.28;
    }
}
